﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using DyUi.Base.Interfaces;

namespace DyUi.Base
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class ScriptHostMetaDataAttribute : Attribute, IScriptHostMetaData
    {
        /// <summary>
        /// Initializes a new instance of the ScriptHostMetaDataAttribute class.
        /// </summary>
        public ScriptHostMetaDataAttribute()
        {
            
        }

        /// <summary>
        /// Initializes a new instance of the ScriptHostMetaDataAttribute class.
        /// </summary>
        public ScriptHostMetaDataAttribute(string name, string extension)
        {
            Name = name;
            Extension = extension;
        }

        public string Name { get; private set; }
        public string Extension { get; private set; }
    }
}
